//package com.xbts.web.controller.tool;
//
//import com.xbts.common.annotation.Excel;
//import com.xbts.common.core.controller.BaseController;
//import com.xbts.common.utils.poi.ExcelUtil;
//import io.swagger.annotations.Api;
//import lombok.Data;
//import org.apache.poi.ss.usermodel.IndexedColors;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletResponse;
//import java.util.Arrays;
//
///**
// * swagger 用户测试方法
// *
// * @author xbts
// */
//@Api("用户信息管理")
//@RestController
//@RequestMapping("/test/user")
//public class TestController extends BaseController {
//
//
//    @GetMapping("/export")
//    public void test(HttpServletResponse response) {
//        try {
//            CheckEntity checkEntity = new CheckEntity();
//            ExcelUtil<CheckEntity> util = new ExcelUtil<>(CheckEntity.class);
//            util.exportExcel(response, Arrays.asList(checkEntity), "安全检查","安全检查20240617");
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }
//
//    @Data
//    class CheckEntity {
//
////        @Excel(name = "标题", needMerge = true, headerBackgroundColor = IndexedColors.SEA_GREEN)
////        private String title = "安全检查20240617";
//        @Excel(name = "清单名称")
//        private String checkName = "安全巡检";
//        @Excel(name = "检查周期")
//        private String checkCycle = "没三日检查两次";
//        @Excel(name = "点位名称")
//        private String pointName = "模修车间";
//        @Excel(name = "履职人员")
//        private String checkUser = "秘书-张国强";
//        @Excel(name = "履职部门")
//        private String checkDept = "技术部";
//
//    }
//
//}
